import { createRouter, createWebHistory } from "vue-router";

import Login from "../page/Login.vue"
import Index from "../page/Index.vue"
import List from "../page/List.vue";
const routes = [
    {
        path: "/",
        component: Login
    },
    {
        path: "/index",
        component: Index,
        children: [
            {
                path: "list",
                component: List
            }
        ]
    }
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;